package com.lf.cloud.test;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.jfinal.kit.JsonKit;
import com.lf.cloud.comm.webutils.CommMethod;
import com.lf.cloud.grab.utils.HttpPostUtils;

public class SubmitFormData {
	
	
	
	 public static void main(String[] args) {
		
		 Map<String, Object> map = CommMethod.getMap();
		 
		 
		 List<Map<String , String>> objlist = new ArrayList<Map<String , String>>();
		 
		 
		 Map<String , String> mEbusiness = new HashMap<String , String>();
		 mEbusiness.put("website", "jingdong");
		 mEbusiness.put("category", "e_business");
		 objlist.add(mEbusiness);
		 map.put("selected_website", objlist);
		 map.put("skip_mobile", false);
		 Map<String , String> baseInfo = new HashMap<String , String>();
		 baseInfo.put("name", "石婷");
		 baseInfo.put("id_card_num", "620802199107173669");
		 baseInfo.put("cell_phone_num", "15600256569");
		 baseInfo.put("home_addr", "");
		 baseInfo.put("work_tel", "");
		 baseInfo.put("work_addr", "");
		 baseInfo.put("home_tel", "");
		 baseInfo.put("cell_phone_num2", "");
		 map.put("basic_info", baseInfo);
		 String json = JsonKit.toJson(map);
		 
		 
		 System.out.println(json);
		 
		 
		 String url = "https://www.juxinli.com/orgApi/rest/v3/applications/jnlongxin";
		 
		 
		 String doPostJson = HttpClientUtil.doPostJson(url, json);
		 
		 System.out.println(doPostJson);
		 
		 
		 
		 
		 
		 
		 
		 
	}

}
